import request from '@/utils/request'

export function getSysCamera(data) {
  return request({
    url: 'camera/page',
    method: 'post',
    data
  })
}

export function getSysCameraDetail(data) {
  return request({
    url: '/camera/' + data,
    method: 'get'
  })
}

export function addSysCamera(data) {
  return request({
    url: '/camera/add',
    method: 'post',
    data
  })
}

export function editSysCamera(data) {
  return request({
    url: '/camera/update',
    method: 'post',
    data
  })
}

export function deleteSysCamera(data) {
  return request({
    url: '/camera/delete/' + data,
    method: 'post'
  })
}
